package com.youi.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import com.youi.entity.Merchant;
import com.youi.entity.User;
import com.youi.entity.Useraddress;
import com.youi.entity.Userorder;

public interface UserorderService extends BaseService<Userorder>{

	/**
	 * 获取订单信息
	 * @param userorderList
	 */
	public void getUserorderMsg(List<Userorder> userorderList) throws IOException;
	
	/**
	 * 获取订单信息
	 * @param userorderList
	 */
	public void getUserorderMsg(Userorder userorder) ;
	
	/**
	 * 新增订单
	 */
	public Userorder addUserorder(User user,Useraddress useraddress,Merchant merchant,Integer orderType);
	
	
	public List<Userorder> getByNoOrderprofitdetail();
	
	public List<Userorder> getByNoLeaderprofitdetail();
	
	public List<Userorder> getByNoLeaderID();
	
	public List<Map> getLeaderprofitdetailStatByLeaderId();

	public Userorder getForUpdate(Long id);
}